<!DOCTYPE html>
<html>
<head>
  <meta charset='UTF-8'/>
  <link rel="stylesheet" href="../../dist/mapbox.css"/>
  <link rel="stylesheet" href="embed.css"/>
  <script src="../../dist/mapbox.js"></script>
  <script src="access_token.js"></script>
</head>
<body>
<div id='map'></div>
<script type='text/javascript'>
    var map = L.mapbox.map('map', 'examples.map-zmy97flj');

    map.gridLayer.on('click', function(e) {
        if (e.data && e.data.admin) {
            window.open("http://en.wikipedia.org/wiki/" + e.data.admin.replace(' ', '_'));
        }
    });
</script>
</body>
</html>
